package org.goldfish.library_system.repos;

import org.goldfish.library_system.entity.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface BookRepository extends JpaRepository<Book, Long> {
    Book findByTitle(String title);
    Book findByAuthor(String author);
    Book findByPublisher(String publisher);
    Book findByCategory(String category);
    Book findByStock(int stock);
}
